#44603
06/16/2002 1:16 AM
|
Joined: Aug 2000
Posts: 569
Member
|
|
Member
Joined: Aug 2000
Posts: 569 |
What would be the code I add to " ubbmisc.cgi", so people can add their pictures ? The add to profile hack is too confussing Thanks 
|
|
|
#44604
06/16/2002 2:18 AM
|
Joined: May 2001
Posts: 6,708
Member
|
|
Member
Joined: May 2001
Posts: 6,708 |
What you could do is get some of the code off the extra profile fields, and then just edit it so it's a URL for an IMG if it's for a picture.
|
|
|
#44605
06/16/2002 5:37 PM
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Unfortunatley that hack is confusing, but it works. It lists all the areas you need to make modifictaions for it to work. Otherwise if you miss certain spots, is a profile is updated it may not keep the new fields, or clobber existing fields. Just keep at that hack, Im sure you'll get it 
I can't afford a good signature editor
|
|
|
#44606
06/17/2002 3:54 AM
|
Joined: May 2001
Posts: 6,708
Member
|
|
Member
Joined: May 2001
Posts: 6,708 |
Looking at it is really is, and I don't think you should install it this way if you can't follow it.
|
|
|
#44607
06/18/2002 1:07 PM
|
Joined: May 2002
Posts: 7
Junior Member
|
|
Junior Member
Joined: May 2002
Posts: 7 |
tough question because it is a pain in the ass with all the changes. ubbmisc and ubb_library2.pl have to be changed. off the top of my head should hopefully point you in the right direction. lets modify an existing field as i do not know what profile mods you already have. im going to change the ICQ profile to be a users personal profile portrait tag url. since icq sucks no worries. Lets rock p2kewl4u styelZ! ## UBBMISC.CGI Find: [/code]Below this add:
</pre></div></div>We just added some stuff to do some stuff so the stuff you want it to do, will work.<br><br>Find:<br><br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre> Replace it with:
</pre></div></div>Just replaced the ICQ Number Profile with the users OwnAvatar profile.<br><br>Find:<br><br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre> Replace it with:
</pre></div></div>Added OwnAvatar to the filter check so HTML is allowed in theprofile[13] variable.<br><br>NOTE! Check for this TWICE and make a SECOND change if need be. I think this line:<br><br>[code] appears TWICE in UBBMISC.CGI so double check it. If so, make the proper changes as noted above.
Let's continue!
Find:
[/code]Replace it with:
</pre></div></div>Find:<br><br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre> Replace it with:
</pre></div></div>Find:<br><br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre> Replace it with:
</pre></div></div>Find:<br><br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre> Replace it with:
</pre></div></div>Find:<br><br><tr $AltColumnColor1><br><td><br><B><FONT SIZE="$TextSize" FACE="$FontFace">ICQ Number</FONT></B><br></td><br><td><br><INPUT TYPE="TEXT" NAME="ICQnum" VALUE="$ICQnumber" SIZE=7 MAXLENGTH=20><br></td></tr> Replace it with:
[/code]Find:
<tr $AltColumnColor2> <TD valign=top><FONT SIZE="$TextSize" FACE="$FontFace"><B>ICQ Number</B></FONT></TD> <TD ><FONT SIZE="$TextSize" FACE="$FontFace" COLOR="$LinkColor">$in{'ICQ'}</font> </TD> </tr> Replace it with:
[/code]Got it? Hopefully that's everything. The tables you changed are for cosmetic reasons and to display the custom portrait they selected via their profile. HTML will be allowed. In their profile, under Own Avatar, they enter <a href="http://site_to_point_to.com/images/filename.ext" target="_blank">http:/<wbr>/<wbr>site_to_point_to.com/<wbr>images/<wbr>filename.ext</a> as an example. This will save to $theprofile[13] variable.<br><br>To display their personal avatar, you have to go into UBB_LIBRARY2.PL so let's do that next.<br><br>IF YOU HAVE THE AVATAR HACK INSTALLED:<br><br>Find:<br><br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre> Replace it with:
</pre></div></div>If you don't have the avatar hack installed...<br><br>Find:<br><br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre> Replace it with:
[code] In UBB_LIBRARY2.PL if $thisprofile[13] is putting up no image, change it to $OwnAvatar
***** THIS MOD is from editing UBBMISC.CGI and UBB_LIBRARY2.PL visually and has not been tested.
p2kewl4u outz!
|
|
|
#44608
06/20/2002 3:00 AM
|
Joined: Aug 2000
Posts: 569
Member
|
|
Member
Joined: Aug 2000
Posts: 569 |
and that will do ? hehehe
|
|
|
#44609
06/20/2002 3:27 PM
|
Joined: May 2002
Posts: 7
Junior Member
|
|
Junior Member
Joined: May 2002
Posts: 7 |
exactly what you wanted
hehehehheheheeeeheehehehehehehehhe
oooooh hohohohohohohohohohohohohohohohohohohoh
aaaaahhh hahahahahahaahahahaahahahahahahahahahaha
|
|
|
#44610
06/21/2002 1:13 AM
|
Joined: Aug 2000
Posts: 569
Member
|
|
Member
Joined: Aug 2000
Posts: 569 |
Thanks dude, I'll test it and let you know what happened 
|
|
|
#44611
06/21/2002 2:11 AM
|
Joined: May 2001
Posts: 6,708
Member
|
|
Member
Joined: May 2001
Posts: 6,708 |
What a silly question. 
|
|
|
#44612
06/21/2002 3:02 AM
|
Joined: Aug 2000
Posts: 569
Member
|
|
Member
Joined: Aug 2000
Posts: 569 |
I got a 500 Internal server error 
|
|
|
#44613
06/21/2002 6:14 AM
|
Joined: May 2001
Posts: 6,708
Member
|
|
Member
Joined: May 2001
Posts: 6,708 |
Can you get the error thats appearing from your error log?
|
|
|
#44614
06/21/2002 7:23 AM
|
Joined: May 2002
Posts: 7
Junior Member
|
|
Junior Member
Joined: May 2002
Posts: 7 |
i just modified my own ubbmisc.cgi file and the code above works to a match without any errors.
cant help you fix the problem if i dont have an error list of what part of the code is barfing on you. and "it doesnt work" doesnt help me or you.
p2kewl4u outz!
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 21,080
Joined: March 2000
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,825
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 4338
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 16
|
|
|
|